//
//  ViewController.m
//  面试例子
//
//  Created by song on 15/8/18.
//  Copyright (c) 2015年 song. All rights reserved.
//

#import "ViewController.h"
#import "UITextField+Shark.h"
#import "UIView+getISOImage.h"
#import "User.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
//    NSString *str =@"hello | wwwbaidu.com";
//    NSArray *array = [str componentsSeparatedByString:@"|"];
//    NSLog(@"%@",array);

//    [str ]
    
    
    // Do any additional setup after loading the view, typically from a nib.
}

-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    
    
    NSString *path =[NSSearchPathForDirectoriesInDomains(NSDocumentationDirectory, NSUserDomainMask, YES) lastObject];
    NSString *dicpath  =[path stringByAppendingString:@"/userData"];
    NSFileManager *fileManger =[[NSFileManager alloc] init];
    if(![fileManger fileExistsAtPath:dicpath])
    {
        [fileManger createDirectoryAtPath:dicpath withIntermediateDirectories:false attributes:nil error:nil];
    }
    
//    NSString *name = [self.textFieldShark text];
//    if( [name isEqualToString:@"song"])
//    {
//        [self.textFieldShark shark];
//    }
//     UIImage *image =[self.textFieldShark getIOSImage];
//    self.isoImageView.image = image;
    

    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
